package com.gzist.elderlyserviceplatform.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzist.elderlyserviceplatform.entity.dto.ActivityRegistrationQueryDTO;
import com.gzist.elderlyserviceplatform.entity.po.ActivityRegistration;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gzist.elderlyserviceplatform.entity.vo.ActivityRegistrationVO;
import com.gzist.elderlyserviceplatform.entity.vo.HomePageInfoCountVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 活动报名表 Mapper 接口
 */
public interface ActivityRegistrationMapper extends BaseMapper<ActivityRegistration> {

    Page<ActivityRegistrationVO> queryPage(@Param("page") Page<ActivityRegistrationVO> page, @Param("queryDTO") ActivityRegistrationQueryDTO queryDTO);

    List<HomePageInfoCountVO> countActivityRegistration();
}
